import request from "@/utils/request";

// 查询列表
export function listMessage(query) {
  return request({
    url: "/api/message/list",
    method: "get",
    params: query,
  });
}

// 新增
export function addMessage(data) {
  return request({
    url: "/api/message/add",
    method: "post",
    data: data,
  });
}

// 已读
export function updateMessage(data) {
  return request({
    url: "/api/message/update",
    method: "post",
    data: data,
  });
}
// 已读
export function delMessage(data) {
  return request({
    url: "/api/message/del",
    method: "post",
    data: data,
  });
}
